package com.example.hxds.bff.customer.feign;

import com.example.hxds.bff.customer.controller.form.*;
import com.example.hxds.common.util.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;

/**
 * @ClassName: CstServiceApi
 * @Description: 客户模块客户端
 * @Author: 丛雨
 * @Date: 2024/1/23 17:43
 */
@FeignClient(value = "hxds-cst")
public interface CstServiceApi {
    @PostMapping("/customer/registerNewCustomer")
    R registerNewCustomer(@RequestBody @Valid RegisterNewCustomerForm form);

    @PostMapping("/customer/login")
    R login(@RequestBody @Valid LoginForm form);

    @PostMapping("/customer/car/insertCustomerCar")
    R insertCustomerCar(@RequestBody @Valid InsertCustomerCarForm form);


    @PostMapping("/customer/car/searchCustomerCarList")
    R searchCustomerCarList(@RequestBody @Valid SearchCustomerCarListForm form);


    @PostMapping("/customer/car/deleteCustomerCarById")
    R deleteCustomerCarById(@RequestBody @Valid DeleteCustomerCarByIdForm form);

}
